package chapter03;

/**
 * Created by V5470-I5 on 2016/5/29.
 */
public class NineNineTable2 {
    public static void main(String[] args) {
        for (int i = 2, j = 1;  j < 10; i = (i==9)?((++j/j)+1):(i+1)) {
            System.out.printf("%d*%d=%2d%c", i, j,  i * j, (i==9 ? '\n' : ' '));
        }
    }
}
